<template>
    <div class="advertisement-management">
        <tabs :tabs="tabLists" class="tab" :handleClick="handleClick"></tabs>
        <router-view></router-view>
    </div>
</template>

<script>
	import Tabs from '@/components/tabs/tabs'

	export default {
		data() {
			return {
				tabLists:[
					{"label": "广告列表", "name": 'advertisement-list'},
					{"label": "广告位列表", "name": 'advertisement-pos-list'}
				]
			}
		},
		methods: {
			handleClick(tab, event) {
				const path = this.tabLists[tab.index].name;
				this.$router.push({
					path: path
				});
			}
		},
		created() {

		},
		components: {
			Tabs
		},
		name: "advertisement-management"
	}
</script>

<style scoped>

</style>
